package es.udc.emarketapp.emarket.model.countryFacade.actions;

import java.sql.Connection;
import java.util.List;

import es.udc.emarketapp.emarket.model.country.dao.SQLCountryDAO;
import es.udc.emarketapp.emarket.model.country.dao.SQLCountryDAOFactory;
import es.udc.emarketapp.emarket.model.country.vo.CountryVO;
import es.udc.fbellas.j2ee.util.exceptions.InternalErrorException;
import es.udc.fbellas.j2ee.util.sql.NonTransactionalPlainAction;
import java.util.Locale;

public class FindAllCountriesActionOld implements NonTransactionalPlainAction {
	

	public FindAllCountriesActionOld() {}

	/**
	 *
	 * @return An instance of <code>ProductChunkVO</code> objects.
	 */
	public Object execute(Connection connection) 
		throws InternalErrorException {

		/* 
		 * Find count+1 products to determine if there exist more products
		 * above the specified range.
		 */                
		SQLCountryDAO countryDAO = SQLCountryDAOFactory.getDAO();            
		List<CountryVO> countryVOs = countryDAO.findAllCountries(connection,  1, 239);



		return countryVOs;                    

	}


}